package com.cbg.discount.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cbg.base.core.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.sql.Date;

/**
 * 优惠表
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dg_discount")
public class Discount extends SuperEntity<Discount> {
    private static final long serialVersionUID = 3704985391134827187L;

    /**
     * 优惠券名称
     */
    private String name;
    /**
     *优惠券类型    0抵扣券   1折扣券
     */
    private Integer type;
    /**
     * 优惠券 面额
     */
    private BigDecimal amountMoney;

    /**
     * 路线id
     */
    private String routeId;

    /**
     * 有效天数
     */
    private Integer validDays;
    /**
     * 截至有效时间
     */
    private Date validDate;

}
